package com.itheima.a01extendsdemo1;

public class Cats extends Animals{
    protected String breed;
    private String color;
    //Constructor======================================================
    public Cats() {
    }

    public Cats(String breed, String color) {
        this.breed = breed;
        this.color = color;
    }
    //Getter and Setter===============================================
    public String getBreed() {
        return breed;
    }

    public void setBreed(String breed) {
        this.breed = breed;
    }

    public String getColor() {
        return color;
    }

    public void setColor(String color) {
        this.color = color;
    }
    //Method=========================================================
    public void catchMouse(){
        System.out.println("抓老鼠。");
    }
}
